package ui;

import java.awt.Color;
import java.awt.Font;
import java.awt.Image;
import javax.swing.ImageIcon;

/**
 * @author duncan
 */
public class BoxStyle
{
    public Color color_background;
    public Color color_background_hover;
    public Color color_border;
    public Color color_text;
    
    public Font font;

    public boolean showBackground   = true;
    public boolean showBorder	    = true;
    public boolean showText	    = true;
    public boolean showBGImage	    = false;

    public Image background_image;
    public Image background_image_hover;

    /**
     * BoxStyle constructor.
     *
     * @param background The background-color to use.
     * @param border The border-color to use.
     * @param text The text-color to use.
     * @param font The font to use for text-drawing.
     */
    public BoxStyle(Color background, Color background_hover, Color border, Color text, Font font)
    {
	color_background	= background;
	color_background_hover  = background_hover;
	color_border		= border;
	color_text		= text;
	this.font		= font;
    }

    /**
     * Loads a background-image from a file at the
     * specified location.
     *
     * @param path The path to the background-image.
     */
    public void loadBackground(String image_path, String hover_path)
    {
	background_image	= (new ImageIcon(image_path)).getImage();
	background_image_hover	= (new ImageIcon(hover_path)).getImage();
    }
}
